package com.ht.springcloud.order.feign;

import com.ht.springcloud.order.pojo.ItemOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("04ITEMPROVIDER-EUREKA100000")
@RequestMapping("/items")
public interface ItemFeignClient {
    @GetMapping("/item/{id}")
    ItemOrder getItemById(@PathVariable Integer id);
}
